import Mock from "mockjs";

import homeApi from './MockData/home'
import userApi from './MockData/user'
//定义mock请求拦截
Mock.mock('/api/home/getData', homeApi.getStatisticalData)
//用户列表
Mock.mock(/api\/user\/getList/, userApi.getUserList)

//新增
Mock.mock('/api/user/add', 'post', userApi.createUser)
//删除
Mock.mock('/api/user/del', 'post', userApi.deleteUser)
//批量删除
Mock.mock('/api/user/delList', 'post', userApi.batchremove)
//修改
Mock.mock('/api/user/edit', 'post', userApi.updateUser)



